package at.ac.univie.zsu.aguataplan.property;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.beans.factory.annotation.Value;

import at.ac.univie.zsu.aguataplan.util.EnvironmentHandler;

/**
 * @author gerry
 * 
 */
@Configurable
public class UIProperties {

	@Value(value = "#{uiPropertiesProp.language}")
	private String language;
	@Value(value = "#{uiPropertiesProp.country}")
	private String country;

	@Value(value = "#{uiPropertiesProp.sizeX}")
	private int sizeX;
	@Value(value = "#{uiPropertiesProp.sizeY}")
	private int sizeY;
	@Value(value = "#{uiPropertiesProp.iconPath}")
	private String iconPath;
	@Value(value = "#{uiPropertiesProp.homePath}")
	private String homePath;
	@Value(value = "#{uiPropertiesProp.title}")
	private String title;

	@Value(value = "#{uiPropertiesProp.license}")
	private String license;

	@Value(value = "#{uiPropertiesProp.increaseSpeed}")
	private float increaseSpeed;
	@Value(value = "#{uiPropertiesProp.increaseSpeedMax}")
	private float increaseSpeedMax;
	@Value(value = "#{uiPropertiesProp.decreaseSpeed}")
	private float decreaseSpeed;
	@Value(value = "#{uiPropertiesProp.decreaseSpeedMax}")
	private float decreaseSpeedMax;

	@Value(value = "#{uiPropertiesProp.volumeStart}")
	private int volumeStart;

	// ----------------------------------------------------
	// CONSTRUCTOR
	// ----------------------------------------------------

	public UIProperties() {

	}

	// ----------------------------------------------------
	// GETTER & SETTER
	// ----------------------------------------------------

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public int getSizeX() {
		return sizeX;
	}

	public void setSizeX(int sizeX) {
		this.sizeX = sizeX;
	}

	public int getSizeY() {
		return sizeY;
	}

	public void setSizeY(int sizeY) {
		this.sizeY = sizeY;
	}

	public String getIconPath() {
		return EnvironmentHandler.adaptPath(iconPath);
	}

	public void setIconPath(String iconPath) {
		this.iconPath = iconPath;
	}

	public String getHomePath() {
		return homePath;
	}

	public void setHomePath(String homePath) {
		this.homePath = homePath;
	}

	public String getLicense() {
		return license;
	}

	public void setLicense(String license) {
		this.license = license;
	}

	public float getIncreaseSpeed() {
		return increaseSpeed;
	}

	public void setIncreaseSpeed(float increaseSpeed) {
		this.increaseSpeed = increaseSpeed;
	}

	public float getIncreaseSpeedMax() {
		return increaseSpeedMax;
	}

	public void setIncreaseSpeedMax(float increaseSpeedMax) {
		this.increaseSpeedMax = increaseSpeedMax;
	}

	public float getDecreaseSpeed() {
		return decreaseSpeed;
	}

	public void setDecreaseSpeed(float decreaseSpeed) {
		this.decreaseSpeed = decreaseSpeed;
	}

	public float getDecreaseSpeedMax() {
		return decreaseSpeedMax;
	}

	public void setDecreaseSpeedMax(float decreaseSpeedMax) {
		this.decreaseSpeedMax = decreaseSpeedMax;
	}

	public int getVolumeStart() {
		return volumeStart;
	}

	public void setVolumeStart(int volumeStart) {
		this.volumeStart = volumeStart;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

}
